package com.my.object;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="apartment")
public class Apartment {
	@Override
	public String toString() {
		return "Apartment [id=" + id + ", building=" + building + ", floor="
				+ floor + ", room=" + room + ", bed=" + bed + "]";
	}
	@Id
	@Column(name="id")
	private int id;
	@Column(name="building")
	private int building;
	@Column(name="floor")
	private int floor;
	@Column(name="room")
	private int room;
	@Column(name="bed")
	private int bed;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getBuilding() {
		return building;
	}
	public void setBuilding(int building) {
		this.building = building;
	}
	public int getFloor() {
		return floor;
	}
	public void setFloor(int floor) {
		this.floor = floor;
	}
	public int getRoom() {
		return room;
	}
	public void setRoom(int room) {
		this.room = room;
	}
	public int getBed() {
		return bed;
	}
	public void setBed(int bed) {
		this.bed = bed;
	}

}
